package org.zjt.book

/**
  * DESC    内部类：
  *
  * @author
  * @create 2017-04-26 下午1:48
  **/
class InnerClassTest {

  class Inner(private var name :String){
    def descript = "name:"+name
  }

  def create(name :String = "") : Inner = new Inner(name)

}
object Start2{
  def main(args: Array[String]): Unit = {
    var var1 = new InnerClassTest()
    var var2 = var1.create("zhang")
    println(var2.descript)

  }
}